<%if @posts.count == 0 %>
	<p>no comment yet </p>
<% end %>

<% @posts.each do |post| %>
   	<p>Name: <%= post.name %></p>
    <p>Course: <%= post.course %></p>
    <p>Comment: <br> <%= post.comment %></p>
    <small>created at <%= post.created_at %></small>
    <hr/>
<% end %>

